package com.java.example.network.api

import com.java.example.network.response.BaseResponse
import com.java.example.network.response.GetLatestAppResponse
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Query
import retrofit2.http.Url


interface TestApiService {
    /**
     * TODO 模拟登录请求
     *
     * @param
     * @return
     */
    @Headers("Content-Type: application/json;charset=utf-8", "Accept: application/json", "token:fOCOEPRuuXd0YTQo")
    @GET("/api/appVersion/public/getLatestApp")
    fun login(@Query("appCode") appCode: String): Call<BaseResponse<GetLatestAppResponse>>

    @GET
    fun downloadFile(@Url fileUrl: String?): Call<ResponseBody?>?
}